package Entities;

import Visitor.IVisitor;

public class Ball implements Entities.Drawable {

    private int x;
    private int y;
    private int dx;
    private int dy;
    private int radio;

    public Ball(int x, int y, int dx, int dy, int radio) {
        this.x = x;
        this.y = y;
        this.dx = dx;
        this.dy = dy;
        this.radio = radio;
    }

    @Override
    public Drawable accept(IVisitor visitor) {
        return visitor.visit(this);
    }

    @Override
    public void addChild(Drawable drawable) {
    }

    @Override
    public void remove(Drawable drawable) {
    }

    @Override
    public Drawable getChild(int pos) {
        return null;
    }

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }

    public int getRadio() {
        return radio;
    }

    public int getDx() {
        return dx;
    }

    public void setDx(int dx) {
        this.dx = dx;
    }

    public int getDy() {
        return dy;
    }

    public void setDy(int dy) {
        this.dy = dy;
    }

    @Override
    public int getNumElems() {
        return 0;
    }
}
